import request from '@/utils/request'

// 查询library_user列表
export function listUser(query) {
  return request({
    url: '/system/user/list',
    method: 'get',
    params: query
  })
}

// 查询library_user详细
export function getUser(aid) {
  return request({
    url: '/system/user/' + aid,
    method: 'get'
  })
}

// 新增library_user
export function addUser(data) {
  return request({
    url: '/system/user',
    method: 'post',
    data: data
  })
}

// 修改library_user
export function updateUser(data) {
  return request({
    url: '/system/user',
    method: 'put',
    data: data
  })
}

// 删除library_user
export function delUser(aid) {
  return request({
    url: '/system/user/' + aid,
    method: 'delete'
  })
}
